# $Id: PKGBUILD 70452 2012-05-07 13:45:39Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Firmicus <francois.archlinux.org>

pkgname=perl-test-warn
pkgver=0.24
pkgrel=1
pkgdesc="Perl extension to test methods for warnings "
arch=(any)
url="http://search.cpan.org/~CHORNY/Test-Warn"
license=('GPL' 'PerlArtistic')
depends=('perl-tree-dag-node' 'perl-sub-uplevel>=0.12' 'perl>=5.10.0')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Test-Warn-$pkgver.tar.gz)
md5sums=('a27990b62f8fd0aa290bb617ae0157a5')

build() {
  cd  $srcdir/Test-Warn-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  $srcdir/Test-Warn-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
